package com.easymin.weixin.entity.freight;

import java.io.Serializable;
import java.util.Date;

public class TruckType implements Serializable {
  private Long id;

  private Date created;

  private Date updated;

  private String typeName;

  private Long areaId;

  private Integer sequence;

  private Boolean cangointotown;

  private Double len;

  private Double width;

  private Double height;

  private Double carryingCapacity;

  private String img;

  private String appKey;

  private Long companyId;

  private String companyName;

  private static final long serialVersionUID = 1L;

  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public Date getCreated() {
    return created;
  }

  public void setCreated(Date created) {
    this.created = created;
  }

  public Date getUpdated() {
    return updated;
  }

  public void setUpdated(Date updated) {
    this.updated = updated;
  }

  public String getTypeName() {
    return typeName;
  }

  public void setTypeName(String typeName) {
    this.typeName = typeName == null ? null : typeName.trim();
  }

  public Long getAreaId() {
    return areaId;
  }

  public void setAreaId(Long areaId) {
    this.areaId = areaId;
  }

  public Integer getSequence() {
    return sequence;
  }

  public void setSequence(Integer sequence) {
    this.sequence = sequence;
  }

  public Boolean getCangointotown() {
    return cangointotown;
  }

  public void setCangointotown(Boolean cangointotown) {
    this.cangointotown = cangointotown;
  }

  public Double getLen() {
    return len;
  }

  public void setLen(Double len) {
    this.len = len;
  }

  public Double getWidth() {
    return width;
  }

  public void setWidth(Double width) {
    this.width = width;
  }

  public Double getHeight() {
    return height;
  }

  public void setHeight(Double height) {
    this.height = height;
  }

  public Double getCarryingCapacity() {
    return carryingCapacity;
  }

  public void setCarryingCapacity(Double carryingCapacity) {
    this.carryingCapacity = carryingCapacity;
  }

  public String getImg() {
    return img;
  }

  public void setImg(String img) {
    this.img = img == null ? null : img.trim();
  }

  public String getAppKey() {
    return appKey;
  }

  public void setAppKey(String appKey) {
    this.appKey = appKey == null ? null : appKey.trim();
  }

  public Long getCompanyId() {
    return companyId;
  }

  public void setCompanyId(Long companyId) {
    this.companyId = companyId;
  }

  public String getCompanyName() {
    return companyName;
  }

  public void setCompanyName(String companyName) {
    this.companyName = companyName == null ? null : companyName.trim();
  }

  @Override
  public boolean equals(Object that) {
    if (this == that) {
      return true;
    }
    if (that == null) {
      return false;
    }
    if (getClass() != that.getClass()) {
      return false;
    }
    TruckType other = (TruckType) that;
    return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
        && (this.getCreated() == null ? other.getCreated() == null : this.getCreated().equals(
            other.getCreated()))
        && (this.getUpdated() == null ? other.getUpdated() == null : this.getUpdated().equals(
            other.getUpdated()))
        && (this.getTypeName() == null ? other.getTypeName() == null : this.getTypeName().equals(
            other.getTypeName()))
        && (this.getAreaId() == null ? other.getAreaId() == null : this.getAreaId().equals(
            other.getAreaId()))
        && (this.getSequence() == null ? other.getSequence() == null : this.getSequence().equals(
            other.getSequence()))
        && (this.getCangointotown() == null ? other.getCangointotown() == null : this
            .getCangointotown().equals(other.getCangointotown()))
        && (this.getLen() == null ? other.getLen() == null : this.getLen().equals(other.getLen()))
        && (this.getWidth() == null ? other.getWidth() == null : this.getWidth().equals(
            other.getWidth()))
        && (this.getHeight() == null ? other.getHeight() == null : this.getHeight().equals(
            other.getHeight()))
        && (this.getCarryingCapacity() == null ? other.getCarryingCapacity() == null : this
            .getCarryingCapacity().equals(other.getCarryingCapacity()))
        && (this.getImg() == null ? other.getImg() == null : this.getImg().equals(other.getImg()))
        && (this.getAppKey() == null ? other.getAppKey() == null : this.getAppKey().equals(
            other.getAppKey()))
        && (this.getCompanyId() == null ? other.getCompanyId() == null : this.getCompanyId()
            .equals(other.getCompanyId()))
        && (this.getCompanyName() == null ? other.getCompanyName() == null : this.getCompanyName()
            .equals(other.getCompanyName()));
  }

  @Override
  public int hashCode() {
    final int prime = 31;
    int result = 1;
    result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
    result = prime * result + ((getCreated() == null) ? 0 : getCreated().hashCode());
    result = prime * result + ((getUpdated() == null) ? 0 : getUpdated().hashCode());
    result = prime * result + ((getTypeName() == null) ? 0 : getTypeName().hashCode());
    result = prime * result + ((getAreaId() == null) ? 0 : getAreaId().hashCode());
    result = prime * result + ((getSequence() == null) ? 0 : getSequence().hashCode());
    result = prime * result + ((getCangointotown() == null) ? 0 : getCangointotown().hashCode());
    result = prime * result + ((getLen() == null) ? 0 : getLen().hashCode());
    result = prime * result + ((getWidth() == null) ? 0 : getWidth().hashCode());
    result = prime * result + ((getHeight() == null) ? 0 : getHeight().hashCode());
    result =
        prime * result + ((getCarryingCapacity() == null) ? 0 : getCarryingCapacity().hashCode());
    result = prime * result + ((getImg() == null) ? 0 : getImg().hashCode());
    result = prime * result + ((getAppKey() == null) ? 0 : getAppKey().hashCode());
    result = prime * result + ((getCompanyId() == null) ? 0 : getCompanyId().hashCode());
    result = prime * result + ((getCompanyName() == null) ? 0 : getCompanyName().hashCode());
    return result;
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append(getClass().getSimpleName());
    sb.append(" [");
    sb.append("Hash = ").append(hashCode());
    sb.append(", id=").append(id);
    sb.append(", created=").append(created);
    sb.append(", updated=").append(updated);
    sb.append(", typeName=").append(typeName);
    sb.append(", areaId=").append(areaId);
    sb.append(", sequence=").append(sequence);
    sb.append(", cangointotown=").append(cangointotown);
    sb.append(", len=").append(len);
    sb.append(", width=").append(width);
    sb.append(", height=").append(height);
    sb.append(", carryingCapacity=").append(carryingCapacity);
    sb.append(", img=").append(img);
    sb.append(", appKey=").append(appKey);
    sb.append(", companyId=").append(companyId);
    sb.append(", companyName=").append(companyName);
    sb.append(", serialVersionUID=").append(serialVersionUID);
    sb.append("]");
    return sb.toString();
  }
}
